<script setup>
import { ref } from "vue";
const showPicker = ref(false);
</script>
<template>
	<van-field
		v-model="value"
		is-link
		readonly
		name="picker"
		label="选择器"
		:border="false"
		placeholder="点击选择城市"
		@click="showPicker = true"
	/>
	<van-popup v-model:show="showPicker" position="bottom">
		<van-picker :columns="columns" @confirm="onConfirm" @cancel="showPicker = false" teleport="body" />
	</van-popup>
</template>
